package com.power.services.hospital;

import java.util.List;
import java.util.Map;

import com.power.model.hospital.TiHospital;
import com.power.services.GenericService;
import com.power.util.PageUtil;

public interface HospitalService extends GenericService<TiHospital, Integer> {

    public Map<String, Object> findAll(String hospitalName, int start, int limit, Integer pid);
    
    public void saveOrUpdate(TiHospital hospital);
    
    public void delete(String ids);
    
    public String getProName(Integer code);
    public String getProId(Integer code);
    public String getDistrictName(Integer code);

	public void deleteHos(String ids);
	
	/**
	 * 根据关键字检索相应的医院信息
	 * @param keyword
	 * @param pageNo
	 * @param limit
	 * @return
	 */
	public PageUtil searchHos(String keyword, int pageNo, int limit);
	
	/**
	 * 根据地区主键查找该地区所有医院
	 * @param aid
	 * @return
	 */
	public List<TiHospital> findByAreaId(Integer aid);
	
	public List<TiHospital> findBySearchKeyWord(String keyword);
}
